<html>
<head>
    <style>
        .center {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh; /* This will center the button vertically */
        }
    </style>
</head>
<body>

<div class="center">
    <button onclick="callAndroidToast()">Toast!</button>
</div>

<script>
    function callAndroidToast() {
        // JSB的调用，其中MyJSB是我们在Java端定义的接口名称，showToast是暴露给JavaScript的方法
        MyJSB.showToast("Hello from JSB!");
    }
</script>

</body>
</html>